curl --request post \
  --url https://{{agent-gateway-hostname}}/auth/oauth2/{{tenant-alias}}/token \
  --header 'content-type: text/plain' \
  --data 'grant_type=authorization_code&code={{auth-code}}&client_id={{client-id}}&client_secret={{client-secret}}'